package com.demo.redis.entity;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * 用户对象
 * 使用springboot cache缓存对象，必须要添加实现Serializable
 * @author cyj
 */
@Data
@Accessors(chain = true)
public class User implements Serializable {

    private Integer userId;
    private String name;

    private List<Address> addresses;
}
